package com.example.java_chatroom1.mapper;

import com.example.java_chatroom1.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    Integer registry(User user);

    @Select("select * from user where username=#{userName}")
    User queryByName(@Param("userName") String userName);
}
